/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rbh.risk.dao;

import com.rbh.risk.entity.MainEvent;
import com.rbh.risk.entity.SubEvent;
import java.util.List;
import org.springframework.dao.DataAccessException;

/**
 *
 * @author M
 */
public interface SubEventDao {

    public void insert(SubEvent subEvent) throws DataAccessException;

    public void update(SubEvent subEvent) throws DataAccessException;

    public void delete(SubEvent subEvent) throws DataAccessException;

    public SubEvent getById(Integer subEventId) throws DataAccessException;

    public List<SubEvent> getAll() throws DataAccessException;

    public List<SubEvent> getByWords(String words) throws DataAccessException;

    public List<SubEvent> getByMainEvent(MainEvent mainEvent) throws DataAccessException;
}